package cn.ticket.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.CarpoolcategoryMapper;
import cn.ticket.model.Carpoolcategory;
import cn.ticket.service.CarPoolingCategoryService;
@Service
public class CarPoolingCategoryServiceImpl implements CarPoolingCategoryService {

	@Autowired
	CarpoolcategoryMapper carpoolcategoryMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Carpoolcategory record) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.insert(record);
	}

	@Override
	public int insertSelective(Carpoolcategory record) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.insertSelective(record);
	}

	@Override
	public Carpoolcategory selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Carpoolcategory record) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Carpoolcategory record) {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Carpoolcategory> getAll() {
		// TODO Auto-generated method stub
		return carpoolcategoryMapper.getAll();
	}

}
